
const {enviromentCtrl} = require('../controller');

// 路由列表
module.exports = [
    {
        method: 'post',
        path: '/enviroment/list',
        controller: enviromentCtrl.fetchEnvList,
    },
    {
        method: 'post',
        path: '/enviroment',
        controller: enviromentCtrl.saveEnv,
    },
    {
        method: 'post',
        path: '/enviroment/merge',
        controller: enviromentCtrl.mergeEnv,
    },
    {
        method: 'post',
        path: '/enviroment/mergeProject',
        controller: enviromentCtrl.mergeProject,
    },
    {
        method: 'post',
        path: '/enviroment/protection',
        controller: enviromentCtrl.updateProtectBranch,
    },
    {
        method: 'post',
        path: '/enviroment/pr/update',
        controller: enviromentCtrl.updatePullRequest
    }
];
